package com.cmwa.solution.business.prdSetup.news.service;

import java.util.List;

import com.cmwa.solution.base.entity.Page;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.business.prdSetup.news.entity.NewsInfoCommonVo;
import com.cmwa.solution.business.prdSetup.news.entity.NewsInfoHotVo;
/**
 * 通用资讯信息表业务接口层
 * 
 * @author ex-hejm
 * @date 2019-01-21 14:59:01
 */
public interface NewsInfoService {
	public void insertNewsInfoCommon(NewsInfoCommonVo newsInfoCommon, String attIds);
	
	public void physicDeleteNewsInfoCommonById(String id);
	
	public void logicDeleteNewsInfoCommonById(String id);
	
	public void updateNewsInfoCommonById(NewsInfoCommonVo newsInfoCommon);
	
	public NewsInfoCommonVo getNewsInfoCommonById(String id);
	
	public Page<NewsInfoCommonVo> newsInfoCommonListPage(SearchParam sp);

	public List<NewsInfoCommonVo> homeNews();

	public Page<NewsInfoHotVo> newsInfoHotListPage(SearchParam sp);

	/**
	 * 新增热点产品
	 * @author ex-hejm
	 * @date 2019年1月23日上午11:04:30
	 * @param news
	 * @param attIds 
	 */
	public void insertNewsInfoHot(NewsInfoHotVo news, String attIds);

	/**
	 * 热点产品详情
	 * @author ex-hejm
	 * @date 2019年1月23日下午1:45:23
	 * @param id
	 * @return
	 */
	public NewsInfoHotVo getNewsInfoHotById(String id);
}
